package com.yanzu.module.member.forest;

import com.alibaba.fastjson.JSONObject;
import com.dtflys.forest.annotation.Post;
import com.dtflys.forest.annotation.Query;
import com.yanzu.module.member.service.iot.ttlockBean.*;

public interface TTLockClient {
    /**
     * 获取单把钥匙
     */

    @Post(url = "https://cnapi.ttlock.com/oauth2/token")
    JSONObject getToken(@Query TTLockTokenReqVO reqVO);


    @Post(url = "https://cnapi.ttlock.com/v3/key/get")
    JSONObject getKey(@Query TTLockKeyReqVO reqVO);

    @Post(url = "https://cnapi.ttlock.com/v3/lock/lock")
    JSONObject lock(@Query TTLockKeyReqVO reqVO);

    @Post(url = "https://cnapi.ttlock.com/v3/lock/unlock")
    JSONObject unlock(@Query TTLockKeyReqVO reqVO);

    @Post(url = "https://cnapi.ttlock.com/v3/lock/configPassageMode")
    JSONObject configPassageMode(@Query TTLockPassageReqVO reqVO);

    @Post(url = "https://cnapi.ttlock.com/v3/keyboardPwd/add")
    JSONObject pwdAdd(@Query TTLockPwdAddReqVO reqVO);

    @Post(url = "https://cnapi.ttlock.com/v3/keyboardPwd/delete")
    JSONObject pwdDel(@Query TTLockPwdDelReqVO reqVO);

    @Post(url = "https://cnapi.ttlock.com/v3/lock/listKeyboardPwd")
    JSONObject getLockPwdList(@Query TTLockPwdListReqVO vo);

    @Post(url = "https://cnapi.ttlock.com/v3/lock/setAutoLockTime")
    JSONObject setLockAutoLock(@Query TTLockAutoLockReqVO vo);

    @Post(url = "https://cnapi.ttlock.com/v3/lock/updateLockData")
    JSONObject updateLockData(@Query TTLockUpdateReqVO vo);



}
